package com.rds.benchmark.operator;

public abstract class TypeOperatorBase implements TypeOperator {

    protected volatile int times = 0;

    @Override
    public synchronized int endTimes() {
        return times = -1;
    }

    @Override
    public synchronized int resetTimes() {
        int orgTimes = times;
        times = 0;
        return orgTimes;
    }

//    @Override
//    public synchronized int getTimes() {
//        return times;
//    }
//
}
